package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Portrait entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tportrait"
    ,catalog="studio"
)

public class Portrait  implements java.io.Serializable {


    // Fields    

     private Integer memberid;
     private String filename;
     private String path;
     private String uploaddate;


    // Constructors

    /** default constructor */
    public Portrait() {
    }

	/** minimal constructor */
    public Portrait(String filename, String path) {
        this.filename = filename;
        this.path = path;
    }
    
    /** full constructor */
    public Portrait(String filename, String path, String uploaddate) {
        this.filename = filename;
        this.path = path;
        this.uploaddate = uploaddate;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="MEMBERID", unique=true, nullable=false)

    public Integer getMemberid() {
        return this.memberid;
    }
    
    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }
    
    @Column(name="FILENAME", nullable=false, length=30)

    public String getFilename() {
        return this.filename;
    }
    
    public void setFilename(String filename) {
        this.filename = filename;
    }
    
    @Column(name="PATH", nullable=false, length=100)

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }
    
    @Column(name="UPLOADDATE", length=14)

    public String getUploaddate() {
        return this.uploaddate;
    }
    
    public void setUploaddate(String uploaddate) {
        this.uploaddate = uploaddate;
    }
   








}